'''
-
'''

import json


def json_usage():
  movie = {'name': '英雄', 'year': '1990-10-10'}
  str = json.dumps(movie)
  print(type(str), str)
  move2 = json.loads(str)
  print(type(move2), move2)
  # json.dump(move2, open('json.txt', 'w', encoding='utf-8'), ensure_ascii=False)
  move3 = json.load(open('json.txt', 'r'))
  print(type(move3), move3)

# https://goessner.net/articles/JsonPath/
def json_path_usage():
  pass



if __name__ == '__main__':
  json_usage()



